<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>创建对象</title>
</head>
<body>
     <script>
         var dog = new Object();
         dog.color="black";
         dog.size="big";
         dog.name="bobi";
         dog.price=10000;
         console.log(dog);
     

         var cat={
            name:'kitty',
            size:'small',
            price:'8000'
         };
          cat.color='yellow';
          console.log(cat)

         var a = 'hello wbc';
         console.log(a.substr(0,3));
         
           var date = new Date();
           var today = new Date();
           today.setFullYear(2010);
           console.log(date>today);

     </script>
</body>
</html>